identifying vertical and horizontal shifts of functions